package com.mtsmda.java.json.jsonGson;

import java.io.File;
import java.io.FileReader;
import java.io.Reader;

import com.google.gson.Gson;
import com.mtsmda.Country;

public class ReadFromFileJSONGSON {

	public static void main(String[] args) throws Exception {
		File fileJSON_GSON = new File("countriesJSON_GSON.json");
		Reader reader = new FileReader(fileJSON_GSON);
		Gson gson = new Gson();
		Country fromJson = gson.fromJson(reader, Country.class);
		System.out.println(fromJson);
	}

}